<?php 

namespace Managers;



class Message extends \Lib\Model\DoctrineManager{

    public function getAllMessages() {
    $em = $this->getEntityManager();
    $qb = $em->createQueryBuilder()
    ->select('a')
    ->from('Entities\Message', 'a');

    $result = $qb->getQuery()->getResult();
    return $result;

    }
} 